[XSLT] How to add a space when a certain pattern is found?

Posted by user349470 on Stack Overflow See other posts from Stack Overflow or by user349470
Published on 2010-05-25T02:18:29Z Indexed on 2010/05/25 2:21 UTC
Read the original article Hit count: 203

Filed under:

Anyone has any ideas how to add a space between "a" and "boy" when </b><i> pattern is found?

<aaa>
    I am <b>a</b><i>boy</i>.
</aaa>

Currently I apply template at "aaa" level and then handle <b> and <i> templates separately. However, I have no ways to tell that the </b><i> pattern is found.

© Stack Overflow or respective owner

Related posts about xslt